package jmine.tec.rpc.server.base;

import bancosys.tec.exception.AbstractRuntimeException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * Represents any runtime error that occurs on jmine-tec-rpc-server project.
 * 
 * @author fernando.silva
 */
public class RpcServerException extends AbstractRuntimeException {

    private static final long serialVersionUID = -4989363493899440887L;

    /**
     * Creates an exception using a LocalizedMessageHolder, supporting internationalization for error messages.
     * 
     * @param messageHolder The message holder from the internationalization object.
     */
    public RpcServerException(LocalizedMessageHolder messageHolder) {
        super(messageHolder);
    }

    /**
     * Creates an exception using a LocalizedMessageHolder, supporting internationalization for error messages and accepting a throwable
     * object that is the cause for the runtime exception.
     * 
     * @param messageHolder The message holder from the internationalization object.
     * @param cause The throwable cause for the current exception.
     */
    public RpcServerException(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

}
